Ext.onReady(function(){
	var gongzuoPanel = new Ext.ux.Chart.Fusion.Panel({
		id:'chartPanel',
		autoScroll:true,
		border:false, 
		chartCfg:{  
			id : 'chart1',  
			params:{
				flashVars:{
					debugMode:0,
					lang:'EN'
				}  
			}
		},
		chartURL:'charts/FCF_Pie2D.swf',
		dataURL :'dev/devCount.action',
		 tbar : ['分类类别：',{
				xtype:'combo',
				store:new Ext.data.JsonStore({
							     	fields: ['name', 'value'],
							        data: [{
							            name: '归属单位',
							            value: 1
							        },{
							            name: '设备规格',
							            value: 2
							        }]
							   }),
				editable :false,
				mode: 'local',
				displayField:'name',
				valueField:'value',
				triggerAction :'all',
	            value:1,
	            listeners:{
	            	select:function(v){
	            		gongzuoPanel.setChartDataURL('dev/devCount.action?type='+v.value);
	            	}
	            }
		}]
	});
		
	
	var view = new Ext.Viewport({
		layout:'fit',
		items:[gongzuoPanel]
	});
});